﻿Public Partial Class SelectAuditorSingle
    Inherits Mysoft.Map.Application.Security.AppPage

    Private _showDisabledUser As String
    ''' <summary>
    ''' 提供给页面脚本使用
    ''' </summary>
    ''' <value></value>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Public Property ShowDisabledUser() As String
        Get
            Return _showDisabledUser
        End Get
        Set(ByVal value As String)
            _showDisabledUser = value
        End Set
    End Property

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim BUGUID As String = Request("BUGUID") '需要显示的公司GUID

        '是否显示禁用用户
        ShowDisabledUser = Request("ShowDisabledUser")
        If String.IsNullOrEmpty(ShowDisabledUser) Then
            ShowDisabledUser = "0"
        End If

        '过滤公司,如果没有公司GUID,显示所有公司
        If String.IsNullOrEmpty(BUGUID) Then
            appGridTree.Filter = "<filter type=""and""><condition attribute=""1"" operator=""eq"" datatype=""int"" value=""1""/></filter>"
        Else
            appGridTree.Filter = "<filter type=""and""><condition attribute="""" operator=""replace"" datatype=""vchar"" value=""bu.CompanyGUID = '" & BUGUID & "'""/></filter>"
        End If
    End Sub

End Class